package com.leigang.boot.controller;

import com.leigang.boot.utils.HBaseUtil;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class HController {

    /**
     * 创建表
     * @return Boolean
     */
    @GetMapping("/createTable")
    public Boolean createShipTable(String tableName) {
        return HBaseUtil.createTable(tableName, new String[]{"info", "2324", "2325", "2326", "2327", "2328"});
    }
}
